package net.osweb.crm.modules.email.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Sendemailattachment entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "email_sendemailattachment")
public class SendEmailAttachment implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 4964796680437872409L;
	private Integer id;
	private Integer emailId;
	private Integer size;
	private String name;
	private String data;
	private String comment;

	// Constructors

	/** default constructor */
	public SendEmailAttachment() {
	}

	/** minimal constructor */
	public SendEmailAttachment(Integer emailId, Integer size, String name) {
		this.emailId = emailId;
		this.size = size;
		this.name = name;
	}

	/** full constructor */
	public SendEmailAttachment(Integer emailId, Integer size, String name,
			String data, String comment) {
		this.emailId = emailId;
		this.size = size;
		this.name = name;
		this.data = data;
		this.comment = comment;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "email_id", nullable = false)
	public Integer getEmailId() {
		return this.emailId;
	}

	public void setEmailId(Integer emailId) {
		this.emailId = emailId;
	}

	@Column(name = "size", nullable = false)
	public Integer getSize() {
		return this.size;
	}

	public void setSize(Integer size) {
		this.size = size;
	}

	@Column(name = "name", nullable = false, length = 1024)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "data")
	public String getData() {
		return this.data;
	}

	public void setData(String data) {
		this.data = data;
	}

	@Column(name = "comment")
	public String getComment() {
		return this.comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

}